package stu.sup.service;

import stu.sup.entity.Collect;

import java.util.List;


/**
 * Created by HUAWEI on 2020/6/22.
 */
public interface ICollectService {
    //添加收藏
    boolean addcollect(Collect collect);
    //取消收藏
    boolean delatecollect(Collect collect);

    //展示收藏
    List<Collect> show(Integer userId);
    //判断某个收藏是否被收藏过
    boolean collectFlag(Integer userId, Integer productId);

    //分页
    List<Collect> findByuser(int pageNum, int pageSize, int userloginId);
}
